-- GENERATED SPELL FOR [Forgotten Depths Acolyte] --


function spell0_30205(pUnit, Event) --@Curse of Mending,n/a--
pUnit:FullCastSpellOnTarget(60781,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30205', 32000, 1)
end

function spell1_30205(pUnit, Event) --@Shadow Shock,n/a--
pUnit:FullCastSpellOnTarget(16583,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30205', 586, 1)
end

function spell2_30205(pUnit, Event) --@Web Rope,n/a--
pUnit:FullCastSpellOnTarget(56223,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30205', 681, 1)
end

function Sorts_30205(pUnit, Event)
local choix_sorts_30205 = math.random(0, 2)
if choix_sorts_30205 == 0 then
pUnit:RegisterEvent('spell0_30205', 1, 1)
end
if choix_sorts_30205 == 1 then
pUnit:RegisterEvent('spell1_30205', 1, 1)
end
if choix_sorts_30205 == 2 then
pUnit:RegisterEvent('spell2_30205', 1, 1)
end
end

function mob30205_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30205', math.random(1500, 3000), 1)
end

function mob30205_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30205_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30205_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30205, 1, 'mob30205_Action')
RegisterUnitEvent(30205, 2, 'mob30205_Leave')
RegisterUnitEvent(30205, 3, 'mob30205_Kill')
RegisterUnitEvent(30205, 4, 'mob30205_Die')
